// LadderEdit.cpp : implementation file
//

#include "stdafx.h"
#include "NateOnLadderMain.h"
#include "LadderEdit.h"
#include "NateOnLadderMainDlg.h"


// CLadderEdit

IMPLEMENT_DYNAMIC(CLadderEdit, CEdit)

CLadderEdit::CLadderEdit()
{

}

CLadderEdit::~CLadderEdit()
{
}


BEGIN_MESSAGE_MAP(CLadderEdit, CEdit)
    ON_WM_KEYDOWN()
END_MESSAGE_MAP()



// CLadderEdit message handlers



void CLadderEdit::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
    if(nChar == VK_TAB)
    {
        CNateOnLadderMainDlg* pMainDlg = (CNateOnLadderMainDlg*)AfxGetMainWnd();

        pMainDlg->PostMessage(WM_TABKEYPRESSED, 0, 0);
    }

    CEdit::OnKeyDown(nChar, nRepCnt, nFlags);
}
